import VueRouter from 'vue-router'
import Vue from 'vue'
Vue.use(VueRouter)

import routes from './routes'

const router = new VueRouter({
    mode: 'hash',
    routes,
    scrollBehavior(to, from, savedPosition) {
        return { y: 0 }
    }
})


export default router